const vscode = require('vscode');

class SettingHandler {
  getGiteeServiceUrl() {
    const url = vscode.workspace.getConfiguration('HiSmartLiteFoundation').get('giteeServiceUrl');
    return url;
  }

  getServiceUrl() {
    const url = vscode.workspace.getConfiguration('HiSmartLiteFoundation').get('serviceUrl');
    return url;
  }

  getClientId() {
    const clientId = vscode.workspace.getConfiguration('HiSmartLiteFoundation').get('clientId');
    return clientId;
  }

  getClientSecret() {
    const clientSecret = vscode.workspace.getConfiguration('HiSmartLiteFoundation').get('clientSecret');
    return clientSecret;
  }
}

module.exports = SettingHandler;